\(\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx\) [43]
Optimal result
Integrand size = 28, antiderivative size = 140 \[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=\frac {2 \sqrt {a} c^3 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f}-\frac {2 a c^3 \tan (e+f x)}{f \sqrt {a+a \sec (e+f x)}}+\frac {2 a^2 c^3 \tan ^3(e+f x)}{3 f (a+a \sec (e+f x))^{3/2}}-\frac {2 a^3 c^3 \tan ^5(e+f x)}{5 f (a+a \sec (e+f x))^{5/2}}
\]
[Out]
2*c^3*arctan(a^(1/2)*tan(f*x+e)/(a+a*sec(f*x+e))^(1/2))*a^(1/2)/f-2*a*c^3*tan(f*x+e)/f/(a+a*sec(f*x+e))^(1/2)+
2/3*a^2*c^3*tan(f*x+e)^3/f/(a+a*sec(f*x+e))^(3/2)-2/5*a^3*c^3*tan(f*x+e)^5/f/(a+a*sec(f*x+e))^(5/2)
Rubi [A] (verified)
Time = 0.20 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.00, number of
steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3989, 3972, 308, 209}
\[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=-\frac {2 a^3 c^3 \tan ^5(e+f x)}{5 f (a \sec (e+f x)+a)^{5/2}}+\frac {2 a^2 c^3 \tan ^3(e+f x)}{3 f (a \sec (e+f x)+a)^{3/2}}+\frac {2 \sqrt {a} c^3 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a \sec (e+f x)+a}}\right )}{f}-\frac {2 a c^3 \tan (e+f x)}{f \sqrt {a \sec (e+f x)+a}}
\]
[In]
Int[Sqrt[a + a*Sec[e + f*x]]*(c - c*Sec[e + f*x])^3,x]
[Out]
(2*Sqrt[a]*c^3*ArcTan[(Sqrt[a]*Tan[e + f*x])/Sqrt[a + a*Sec[e + f*x]]])/f - (2*a*c^3*Tan[e + f*x])/(f*Sqrt[a +
a*Sec[e + f*x]]) + (2*a^2*c^3*Tan[e + f*x]^3)/(3*f*(a + a*Sec[e + f*x])^(3/2)) - (2*a^3*c^3*Tan[e + f*x]^5)/(
5*f*(a + a*Sec[e + f*x])^(5/2))
Rule 209
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])
Rule 308
Int[(x_)^(m_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Int[PolynomialDivide[x^m, a + b*x^n, x], x] /; FreeQ[{a,
b}, x] && IGtQ[m, 0] && IGtQ[n, 0] && GtQ[m, 2*n - 1]
Rule 3972
Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[-2*(a^(m/2 +
n + 1/2)/d), Subst[Int[x^m*((2 + a*x^2)^(m/2 + n - 1/2)/(1 + a*x^2)), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c +
d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && IntegerQ[n - 1/2]
Rule 3989
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))^(n_.), x_Symbol] :> Di
st[((-a)*c)^m, Int[Cot[e + f*x]^(2*m)*(c + d*Csc[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x]
&& EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && RationalQ[n] && !(IntegerQ[n] && GtQ[m - n, 0])
Rubi steps \begin{align*}
\text {integral}& = -\left (\left (a^3 c^3\right ) \int \frac {\tan ^6(e+f x)}{(a+a \sec (e+f x))^{5/2}} \, dx\right ) \\ & = \frac {\left (2 a^4 c^3\right ) \text {Subst}\left (\int \frac {x^6}{1+a x^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f} \\ & = \frac {\left (2 a^4 c^3\right ) \text {Subst}\left (\int \left (\frac {1}{a^3}-\frac {x^2}{a^2}+\frac {x^4}{a}-\frac {1}{a^3 \left (1+a x^2\right )}\right ) \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f} \\ & = -\frac {2 a c^3 \tan (e+f x)}{f \sqrt {a+a \sec (e+f x)}}+\frac {2 a^2 c^3 \tan ^3(e+f x)}{3 f (a+a \sec (e+f x))^{3/2}}-\frac {2 a^3 c^3 \tan ^5(e+f x)}{5 f (a+a \sec (e+f x))^{5/2}}-\frac {\left (2 a c^3\right ) \text {Subst}\left (\int \frac {1}{1+a x^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f} \\ & = \frac {2 \sqrt {a} c^3 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f}-\frac {2 a c^3 \tan (e+f x)}{f \sqrt {a+a \sec (e+f x)}}+\frac {2 a^2 c^3 \tan ^3(e+f x)}{3 f (a+a \sec (e+f x))^{3/2}}-\frac {2 a^3 c^3 \tan ^5(e+f x)}{5 f (a+a \sec (e+f x))^{5/2}} \\
\end{align*}
Mathematica [A] (verified)
Time = 1.37 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.80
\[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=\frac {2 a c^3 \left (15 \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c-c \sec (e+f x)}}{\sqrt {c}}\right )+\sqrt {c-c \sec (e+f x)} \left (-23+11 \sec (e+f x)-3 \sec ^2(e+f x)\right )\right ) \tan (e+f x)}{15 f \sqrt {a (1+\sec (e+f x))} \sqrt {c-c \sec (e+f x)}}
\]
[In]
Integrate[Sqrt[a + a*Sec[e + f*x]]*(c - c*Sec[e + f*x])^3,x]
[Out]
(2*a*c^3*(15*Sqrt[c]*ArcTanh[Sqrt[c - c*Sec[e + f*x]]/Sqrt[c]] + Sqrt[c - c*Sec[e + f*x]]*(-23 + 11*Sec[e + f*
x] - 3*Sec[e + f*x]^2))*Tan[e + f*x])/(15*f*Sqrt[a*(1 + Sec[e + f*x])]*Sqrt[c - c*Sec[e + f*x]])
Maple [A] (warning: unable to verify)
Time = 6.16 (sec) , antiderivative size = 211, normalized size of antiderivative = 1.51
| | |
method | result | size |
| | |
default |
\(\frac {c^{3} \left (15 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\right ) \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {5}{2}}-74 \left (1-\cos \left (f x +e \right )\right )^{5} \csc \left (f x +e \right )^{5}+80 \left (1-\cos \left (f x +e \right )\right )^{3} \csc \left (f x +e \right )^{3}-30 \csc \left (f x +e \right )+30 \cot \left (f x +e \right )\right ) \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}}{15 f \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )-1\right )^{2} \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )^{2}}\) |
\(211\) |
parts |
\(\frac {2 c^{3} \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \sqrt {-\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}}\right )}{f}+\frac {6 c^{3} \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right )}{f}+\frac {2 c^{3} \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \left (2 \sin \left (f x +e \right )+\tan \left (f x +e \right )\right )}{f \left (\cos \left (f x +e \right )+1\right )}-\frac {2 c^{3} \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \left (8 \sin \left (f x +e \right )+4 \tan \left (f x +e \right )+3 \sec \left (f x +e \right ) \tan \left (f x +e \right )\right )}{15 f \left (\cos \left (f x +e \right )+1\right )}\) |
\(221\) |
| | |
|
|
|
[In]
int((c-c*sec(f*x+e))^3*(a+a*sec(f*x+e))^(1/2),x,method=_RETURNVERBOSE)
[Out]
1/15*c^3/f*(15*2^(1/2)*arctanh(2^(1/2)/((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)*(-cot(f*x+e)+csc(f*x+e)))*((1-c
os(f*x+e))^2*csc(f*x+e)^2-1)^(5/2)-74*(1-cos(f*x+e))^5*csc(f*x+e)^5+80*(1-cos(f*x+e))^3*csc(f*x+e)^3-30*csc(f*
x+e)+30*cot(f*x+e))*(-2*a/((1-cos(f*x+e))^2*csc(f*x+e)^2-1))^(1/2)/(-cot(f*x+e)+csc(f*x+e)-1)^2/(-cot(f*x+e)+c
sc(f*x+e)+1)^2
Fricas [A] (verification not implemented)
none
Time = 0.28 (sec) , antiderivative size = 347, normalized size of antiderivative = 2.48
\[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=\left [\frac {15 \, {\left (c^{3} \cos \left (f x + e\right )^{3} + c^{3} \cos \left (f x + e\right )^{2}\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right ) - 2 \, {\left (23 \, c^{3} \cos \left (f x + e\right )^{2} - 11 \, c^{3} \cos \left (f x + e\right ) + 3 \, c^{3}\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{15 \, {\left (f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )^{2}\right )}}, -\frac {2 \, {\left (15 \, {\left (c^{3} \cos \left (f x + e\right )^{3} + c^{3} \cos \left (f x + e\right )^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) + {\left (23 \, c^{3} \cos \left (f x + e\right )^{2} - 11 \, c^{3} \cos \left (f x + e\right ) + 3 \, c^{3}\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )\right )}}{15 \, {\left (f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )^{2}\right )}}\right ]
\]
[In]
integrate((c-c*sec(f*x+e))^3*(a+a*sec(f*x+e))^(1/2),x, algorithm="fricas")
[Out]
[1/15*(15*(c^3*cos(f*x + e)^3 + c^3*cos(f*x + e)^2)*sqrt(-a)*log((2*a*cos(f*x + e)^2 - 2*sqrt(-a)*sqrt((a*cos(
f*x + e) + a)/cos(f*x + e))*cos(f*x + e)*sin(f*x + e) + a*cos(f*x + e) - a)/(cos(f*x + e) + 1)) - 2*(23*c^3*co
s(f*x + e)^2 - 11*c^3*cos(f*x + e) + 3*c^3)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e))/(f*cos(f*x +
e)^3 + f*cos(f*x + e)^2), -2/15*(15*(c^3*cos(f*x + e)^3 + c^3*cos(f*x + e)^2)*sqrt(a)*arctan(sqrt((a*cos(f*x
+ e) + a)/cos(f*x + e))*cos(f*x + e)/(sqrt(a)*sin(f*x + e))) + (23*c^3*cos(f*x + e)^2 - 11*c^3*cos(f*x + e) +
3*c^3)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e))/(f*cos(f*x + e)^3 + f*cos(f*x + e)^2)]
Sympy [F]
\[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=- c^{3} \left (\int 3 \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )}\, dx + \int \left (- 3 \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{2}{\left (e + f x \right )}\right )\, dx + \int \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{3}{\left (e + f x \right )}\, dx + \int \left (- \sqrt {a \sec {\left (e + f x \right )} + a}\right )\, dx\right )
\]
[In]
integrate((c-c*sec(f*x+e))**3*(a+a*sec(f*x+e))**(1/2),x)
[Out]
-c**3*(Integral(3*sqrt(a*sec(e + f*x) + a)*sec(e + f*x), x) + Integral(-3*sqrt(a*sec(e + f*x) + a)*sec(e + f*x
)**2, x) + Integral(sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**3, x) + Integral(-sqrt(a*sec(e + f*x) + a), x))
Maxima [F]
\[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=\int { -\sqrt {a \sec \left (f x + e\right ) + a} {\left (c \sec \left (f x + e\right ) - c\right )}^{3} \,d x }
\]
[In]
integrate((c-c*sec(f*x+e))^3*(a+a*sec(f*x+e))^(1/2),x, algorithm="maxima")
[Out]
-1/30*(15*((c^3*cos(2*f*x + 2*e)^2 + c^3*sin(2*f*x + 2*e)^2 + 2*c^3*cos(2*f*x + 2*e) + c^3)*arctan2((cos(2*f*x
+ 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2
*e) + 1)), (cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*cos(1/2*arctan2(sin(2*f*x
+ 2*e), cos(2*f*x + 2*e) + 1)) + 1) - (c^3*cos(2*f*x + 2*e)^2 + c^3*sin(2*f*x + 2*e)^2 + 2*c^3*cos(2*f*x + 2*e
) + c^3)*arctan2((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sin(1/2*arctan2(sin(
2*f*x + 2*e), cos(2*f*x + 2*e) + 1)), (cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)
*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - 1) - 2*(c^3*f*cos(2*f*x + 2*e)^2 + c^3*f*sin(2*f*x
+ 2*e)^2 + 2*c^3*f*cos(2*f*x + 2*e) + c^3*f)*integrate((((cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*f*x + 6
*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(2*f*x +
2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(7/
2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) + (cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*e)*sin(6
*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x + 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x + 6*e)*sin
(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*x + 2*e))*sin(7/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))))*cos
(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - ((cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*
e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x + 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x +
6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*x + 2*e))*cos(7/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e
))) - (cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x
+ 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin(
4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*sin(7/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))))*sin(
1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)))/(((2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + cos(2*f*
x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6*(3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x + 6*e) +
9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + 2*(3
*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*sin(4*
f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9*sin(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*f*x +
4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2 + (2*(3
*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6*(3*cos(4*
f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x + 6*e) + 9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*cos(4*f*x +
4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + 2*(3*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*si
n(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9*sin(6*f*x
+ 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*sin(1/2*arctan2(s
in(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2)*(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^
(1/4)), x) - 18*(c^3*f*cos(2*f*x + 2*e)^2 + c^3*f*sin(2*f*x + 2*e)^2 + 2*c^3*f*cos(2*f*x + 2*e) + c^3*f)*integ
rate((((cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x
+ 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin
(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(5/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) + (c
os(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x + 4*e) -
cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x + 6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*x + 2*e)
)*sin(5/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))))*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1
)) - ((cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x
+ 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x + 6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*
x + 2*e))*cos(5/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) - (cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*
f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(
2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)
*sin(5/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)
))/(((2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6
*(3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x + 6*e) + 9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*co
s(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + 2*(3*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x
+ 2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9
*sin(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(1/2
*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2 + (2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + cos(2*f*x
+ 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6*(3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x + 6*e) + 9
*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + 2*(3*s
in(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*sin(4*f*
x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9*sin(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*f*x + 4*
e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2)*(cos(2*f
*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)), x) + 10*(c^3*f*cos(2*f*x + 2*e)^2 + c^3*f*s
in(2*f*x + 2*e)^2 + 2*c^3*f*cos(2*f*x + 2*e) + c^3*f)*integrate((((cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6
*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin
(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2
)*cos(3/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) + (cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*
e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x + 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x +
6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*x + 2*e))*sin(3/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e
))))*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - ((cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*
f*x + 2*e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x + 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(
6*f*x + 6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*x + 2*e))*cos(3/2*arctan2(sin(2*f*x + 2*e), cos(2*f
*x + 2*e))) - (cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*co
s(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e)
+ 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*sin(3/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e)
)))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)))/(((2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) +
cos(2*f*x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6*(3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x
+ 6*e) + 9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^
2 + 2*(3*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(
3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9*sin(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(
4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2
+ (2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6*(
3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x + 6*e) + 9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*cos(
4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + 2*(3*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x +
2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9*s
in(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*sin(1/2*a
rctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2)*(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*
e) + 1)^(1/4)), x) + 10*(c^3*f*cos(2*f*x + 2*e)^2 + c^3*f*sin(2*f*x + 2*e)^2 + 2*c^3*f*cos(2*f*x + 2*e) + c^3*
f)*integrate((((cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*c
os(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e)
+ 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e
))) + (cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*sin(4*f*x
+ 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x + 6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*
x + 2*e))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))))*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x +
2*e) + 1)) - ((cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*e)*sin(6*f*x + 6*e) + 3*cos(2*f*x + 2*e)*si
n(4*f*x + 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f*x + 6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*
sin(2*f*x + 2*e))*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) - (cos(8*f*x + 8*e)*cos(2*f*x + 2*e) +
3*cos(6*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8
*e)*sin(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x +
2*e)^2)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))))*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2
*e) + 1)))/(((2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*
e)^2 + 6*(3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x + 6*e) + 9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^
2 + 6*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2 + 2*(3*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + si
n(2*f*x + 2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x +
6*e) + 9*sin(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)
*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2 + (2*(3*cos(6*f*x + 6*e) + 3*cos(4*f*x + 4*e) + co
s(2*f*x + 2*e))*cos(8*f*x + 8*e) + cos(8*f*x + 8*e)^2 + 6*(3*cos(4*f*x + 4*e) + cos(2*f*x + 2*e))*cos(6*f*x +
6*e) + 9*cos(6*f*x + 6*e)^2 + 9*cos(4*f*x + 4*e)^2 + 6*cos(4*f*x + 4*e)*cos(2*f*x + 2*e) + cos(2*f*x + 2*e)^2
+ 2*(3*sin(6*f*x + 6*e) + 3*sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(8*f*x + 8*e) + sin(8*f*x + 8*e)^2 + 6*(3*
sin(4*f*x + 4*e) + sin(2*f*x + 2*e))*sin(6*f*x + 6*e) + 9*sin(6*f*x + 6*e)^2 + 9*sin(4*f*x + 4*e)^2 + 6*sin(4*
f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1))^2)*
(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)), x))*(cos(2*f*x + 2*e)^2 + sin(2*f*x
+ 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sqrt(a) - 4*(5*(9*c^3*sin(4*f*x + 4*e) + 16*c^3*sin(2*f*x + 2*e))*co
s(5/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - (45*c^3*cos(4*f*x + 4*e) + 80*c^3*cos(2*f*x + 2*e) +
23*c^3)*sin(5/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)))*sqrt(a))/((f*cos(2*f*x + 2*e)^2 + f*sin(2*f*
x + 2*e)^2 + 2*f*cos(2*f*x + 2*e) + f)*(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4
))
Giac [F]
\[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=\int { -\sqrt {a \sec \left (f x + e\right ) + a} {\left (c \sec \left (f x + e\right ) - c\right )}^{3} \,d x }
\]
[In]
integrate((c-c*sec(f*x+e))^3*(a+a*sec(f*x+e))^(1/2),x, algorithm="giac")
[Out]
sage0*x
Mupad [F(-1)]
Timed out. \[
\int \sqrt {a+a \sec (e+f x)} (c-c \sec (e+f x))^3 \, dx=\int \sqrt {a+\frac {a}{\cos \left (e+f\,x\right )}}\,{\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )}^3 \,d x
\]
[In]
int((a + a/cos(e + f*x))^(1/2)*(c - c/cos(e + f*x))^3,x)
[Out]
int((a + a/cos(e + f*x))^(1/2)*(c - c/cos(e + f*x))^3, x)